package May;

import java.net.Socket;

public class Client {
    public static void main(String []args){
        try{
            System.out.println("连接服务器");
            Socket client=new Socket("127.0.0.1",6321);


            Thread t2=new Thread(new ThreadWriter(client));
            t2.start();
            Thread t=new Thread(new ThreadReader(client));
            t.start();
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}
